package cm.android.mytodoit.controller;

import cm.android.mytodoit.model.BuyElement;
import cm.android.mytodoit.model.TodoElement;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class Todo_SQLOpenHelper extends SQLiteOpenHelper{
	
	private static final String TODO_DB = "todo.db";
	private static final int DB_VERSION = 1;
	

	public Todo_SQLOpenHelper(Context context) {
		super(context, TODO_DB, null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		
		db.execSQL(TodoElement.getTabeCreateString());
		db.execSQL(BuyElement.getTabeCreateString());
		
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
		
	}

}
